package painel;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JSplitPane;
import javax.swing.JToolBar;
import javax.swing.JList;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.AbstractListModel;
import javax.swing.ListSelectionModel;
import javax.swing.JButton;
import javax.swing.ImageIcon;

public class Painel_ResumoDaViagem extends JPanel {

	/**
	 * Create the panel.
	 */
	public Painel_ResumoDaViagem() {
		setBackground(new Color(0, 128, 128));
		setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Resumo da Viagem");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setForeground(Color.WHITE);
		lblNewLabel.setFont(new Font("Castellar", Font.BOLD | Font.ITALIC, 20));
		lblNewLabel.setBounds(236, 11, 278, 42);
		add(lblNewLabel);
		
		JPanel panel_ResumoDaViagem = new JPanel();
		panel_ResumoDaViagem.setBounds(10, 59, 851, 471);
		add(panel_ResumoDaViagem);
		panel_ResumoDaViagem.setLayout(null);
		
		JLabel lblVooIda = new JLabel("Voo IDA");
		lblVooIda.setBounds(10, 11, 105, 24);
		panel_ResumoDaViagem.add(lblVooIda);
		lblVooIda.setForeground(new Color(0, 128, 128));
		lblVooIda.setFont(new Font("Castellar", Font.BOLD | Font.ITALIC, 15));
		
		JList list_VooIda = new JList();
		list_VooIda.setBounds(10, 31, 541, 200);
		panel_ResumoDaViagem.add(list_VooIda);
		list_VooIda.setToolTipText("De");
		list_VooIda.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		list_VooIda.setBackground(Color.WHITE);
		list_VooIda.setModel(new AbstractListModel() {
			String[] values = new String[] {};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list_VooIda.setBorder(UIManager.getBorder("CheckBox.border"));
		
		JList list_VooRetorno = new JList();
		list_VooRetorno.setBorder(UIManager.getBorder("CheckBox.border"));
		list_VooRetorno.setToolTipText("De");
		list_VooRetorno.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		list_VooRetorno.setBackground(new Color(255, 255, 255));
		list_VooRetorno.setBounds(10, 262, 541, 200);
		panel_ResumoDaViagem.add(list_VooRetorno);
		
		JLabel lblVoosRetornoIda = new JLabel("Voo Retorno");
		lblVoosRetornoIda.setForeground(new Color(0, 128, 128));
		lblVoosRetornoIda.setFont(new Font("Castellar", Font.BOLD | Font.ITALIC, 15));
		lblVoosRetornoIda.setBounds(10, 237, 167, 24);
		panel_ResumoDaViagem.add(lblVoosRetornoIda);
		
		JLabel lblTotal = new JLabel("VALORES");
		lblTotal.setForeground(new Color(0, 128, 128));
		lblTotal.setFont(new Font("Castellar", Font.BOLD | Font.ITALIC, 15));
		lblTotal.setBounds(561, 11, 118, 24);
		panel_ResumoDaViagem.add(lblTotal);
		
		JList list_Valores = new JList();
		list_Valores.setBorder(UIManager.getBorder("CheckBox.border"));
		list_Valores.setToolTipText("De");
		list_Valores.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		list_Valores.setBackground(Color.WHITE);
		list_Valores.setBounds(561, 33, 280, 198);
		panel_ResumoDaViagem.add(list_Valores);
		
		JList list_ValorTotal = new JList();
		list_ValorTotal.setBorder(UIManager.getBorder("CheckBox.border"));
		list_ValorTotal.setToolTipText("De");
		list_ValorTotal.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		list_ValorTotal.setBackground(Color.WHITE);
		list_ValorTotal.setBounds(561, 262, 280, 198);
		panel_ResumoDaViagem.add(list_ValorTotal);
		
		JLabel lblTotal_1 = new JLabel("total");
		lblTotal_1.setForeground(new Color(0, 128, 128));
		lblTotal_1.setFont(new Font("Castellar", Font.BOLD | Font.ITALIC, 15));
		lblTotal_1.setBounds(561, 237, 118, 24);
		panel_ResumoDaViagem.add(lblTotal_1);
		
		JButton btnProximo = new JButton("");
		btnProximo.setIcon(new ImageIcon(Painel_ResumoDaViagem.class.getResource("/imagens/proximo1.jpg")));
		btnProximo.setVerticalTextPosition(SwingConstants.TOP);
		btnProximo.setVerticalAlignment(SwingConstants.TOP);
		btnProximo.setHorizontalTextPosition(SwingConstants.LEFT);
		btnProximo.setForeground(Color.RED);
		btnProximo.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 15));
		btnProximo.setBackground(new Color(0, 128, 128));
		btnProximo.setBounds(769, 543, 92, 31);
		add(btnProximo);
		
		JButton btnCancelar = new JButton("");
		btnCancelar.setIcon(new ImageIcon(Painel_ResumoDaViagem.class.getResource("/imagens/cancelar.jpg")));
		btnCancelar.setVerticalTextPosition(SwingConstants.TOP);
		btnCancelar.setVerticalAlignment(SwingConstants.TOP);
		btnCancelar.setHorizontalTextPosition(SwingConstants.LEFT);
		btnCancelar.setForeground(Color.RED);
		btnCancelar.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 15));
		btnCancelar.setBackground(new Color(0, 128, 128));
		btnCancelar.setBounds(635, 543, 92, 31);
		add(btnCancelar);

	}
}
